package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.Student4Mapper;
import com.ruoyi.system.domain.Student4;
import com.ruoyi.system.service.IStudent4Service;

/**
 * 学生表4Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-13
 */
@Service
public class Student4ServiceImpl implements IStudent4Service 
{
    @Autowired
    private Student4Mapper student4Mapper;

    /**
     * 查询学生表4
     * 
     * @param id 学生表4主键
     * @return 学生表4
     */
    @Override
    public Student4 selectStudent4ById(Long id)
    {
        return student4Mapper.selectStudent4ById(id);
    }

    /**
     * 查询学生表4列表
     * 
     * @param student4 学生表4
     * @return 学生表4
     */
    @Override
    public List<Student4> selectStudent4List(Student4 student4)
    {
        return student4Mapper.selectStudent4List(student4);
    }

    /**
     * 新增学生表4
     * 
     * @param student4 学生表4
     * @return 结果
     */
    @Override
    public int insertStudent4(Student4 student4)
    {
        return student4Mapper.insertStudent4(student4);
    }

    /**
     * 修改学生表4
     * 
     * @param student4 学生表4
     * @return 结果
     */
    @Override
    public int updateStudent4(Student4 student4)
    {
        return student4Mapper.updateStudent4(student4);
    }

    /**
     * 批量删除学生表4
     * 
     * @param ids 需要删除的学生表4主键
     * @return 结果
     */
    @Override
    public int deleteStudent4ByIds(Long[] ids)
    {
        return student4Mapper.deleteStudent4ByIds(ids);
    }

    /**
     * 删除学生表4信息
     * 
     * @param id 学生表4主键
     * @return 结果
     */
    @Override
    public int deleteStudent4ById(Long id)
    {
        return student4Mapper.deleteStudent4ById(id);
    }
}
